#!/bin/bash
if [ ! -d "./logs" ]; then
    echo "===> Create \`logs\` diectory"
    mkdir ./logs
    touch ./logs/acess.log
    touch ./logs/error.log
else
    if [ ! -e "access.log" ]; then
	echo "===> Create \`./logs/access.log\` file"	
	touch ./logs/acess.log
    fi
    if [ ! -e "error.log" ]; then
	echo "===> Create \`./logs/error.log\` file"		
	touch ./logs/error.log
    fi    
fi
echo "=============> Start to analyse service  (SenseAge, Xi'an, China)"
#python main.py
gunicorn main:app -c gunicorn_conf.py

